<admintpl file="header" />
</head>
<body>
	<div class="wrap js-check-wrap">
		<ul class="nav nav-tabs">
			<li class="active"><a>{:L('USER_INDEXADMIN_INDEX')}</a></li>
			<li ><a href="{:U('Manager/add')}">新增区域经理</a></li>
		</ul>

		<form class="well form-search" method="post" action="{:U('Manager/index')}">
			关键字：
			<input type="text" name="keyword" style="width: 200px;" value="{$formget.keyword}" placeholder="请输入会员id、用户名或者昵称...">
			<input type="submit" class="btn btn-primary" value="搜索">
		</form>		
		<form method="post" class="js-ajax-form" >
			<div class="table-actions">
				<!-- <button class="btn btn-primary btn-small js-ajax-submit" type="submit" data-action="{:U('indexadmin/recordall',array('isrecord'=>'1'))}" >一键开启录播</button>
				<button class="btn btn-primary btn-small js-ajax-submit" type="submit" data-action="{:U('indexadmin/recordall',array('isrecord'=>'0'))}" >一键关闭录播</button> -->
			</div>
			<table class="table table-hover table-bordered">
				<thead>
					<tr>
						<th width="15"><label><input type="checkbox" class="js-check-all" data-direction="x" data-checklist="js-check-x"></label></th>
						<th align="center">ID</th>
						<th>用户名</th>
						<th>头像</th>
						<th>收益(元)</th>
						<th>推荐会员数</th>
						<th>推荐会员购买月数</th>
						<th>邀请码</th>
						<th align="center">{:L('ACTIONS')}</th>
					</tr>
				</thead>
				<tbody>
					<php>$user_statuses=array("0"=>L('USER_STATUS_BLOCKED'),"1"=>L('USER_STATUS_ACTIVATED'),"2"=>L('USER_STATUS_UNVERIFIED'));</php>
					<foreach name="lists" item="vo">
					<tr>
						<td><input type="checkbox" class="js-check" data-yid="js-check-y" data-xid="js-check-x" name="ids[]" value="{$vo.id}" title="ID:{$vo.id}"></td>
						<td align="center">{$vo.id}</td>
						<td>{$vo['user_login']}</td>
						<td><img width="25" height="25" src="{$vo['avatar']}" /></td>
						<td>{$vo.votes}</td>
						<td>{$vo.nums}</td>
						<td>{$vo.monthcards}</td>
						<td>{$vo.invitation_code}</td>
						<td align="center">

								<a href="{:U('Manager/edit',array('id'=>$vo['id']))}">编辑</a> |
							<a href="{:U('Manager/clear',array('code'=>$vo['invitation_code']))}">清空购买月数</a> |
								<a href="{:U('Manager/del',array('id'=>$vo['id']))}" class="js-ajax-dialog-btn" data-msg="您确定要删除此用户吗？">删除</a>
						</td>
					</tr>
					</foreach>
				</tbody>
			</table>
			<div class="pagination">{$page}</div>
		</form>
	</div>
 <script src="__PUBLIC__/js/common.js"></script>
</body>
</html>